﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FizzWare.NBuilder;

namespace Merlba.Plinq
{
    class Program
    {
        static void Main(string[] args)
        {            
            IList<Person> people = GetPeople();
            var filteredPeople = people.AsParallel<Person>().Where(x=> x.BirthDate > DateTime.Now);           
        }

        private static IList<Person> GetPeople()
        {
             return Builder<Person>
                .CreateListOfSize(1000000)
                .WhereTheFirst(50000).Have(x=> x.BirthDate = DateTime.Now.AddDays(10))
                    .Build();
        }
    }



}
